<?xml version="1.0" encoding="utf-8"?>
<component version="1.0" xmlns="http://schemas.circuit-diagram.org/circuitDiagramDocument/2012/component/xml">
  <declaration>
    <meta name="name" value="External Connection" />
    <meta name="version" value="2.0" />
    <meta name="minsize" value="10" />
    <meta name="author" value="Circuit Diagram" />
    <meta name="additionalinformation" value="http://www.circuit-diagram.org/" />
    <meta name="guid" value="c9e06233-ea3e-49c6-ad03-914e8871787b" />
    <meta name="implementset" value="http://schemas.circuit-diagram.org/circuitDiagramDocument/2012/components/misc" />
    <meta name="implementitem" value="extconnection" />

    <property name="Text" type="string" default="" serialize="text" display="Text" />
    <property name="TextPosition" type="bool" default="false" serialize="textpos" display="Reverse text position" />

    <configurations>
      <configuration name="External Input" value="TextPosition:false" implements="extconnection" />
      <configuration name="External Output" value="TextPosition:true" implements="extconnection" />
    </configurations>
  </declaration>
  <connections>
    <group>
      <connection name="com" start="_Start" end="_End" edge="both" />
    </group>
  </connections>
  <render>
    <group conditions="_Horizontal,!$TextPosition">
      <text value="$Text" x="_Start-8" y="_Start" align="CentreRight" size="large" />
      <line start="_Start+3x" end="_End" />
      <ellipse centre="_Start" radiusx="3" radiusy="3" />
    </group>
    <group conditions="_Horizontal,$TextPosition">
      <text value="$Text" x="_End+8" y="_End" align="CentreLeft" size="large" />
      <line start="_Start" end="_End-3x" />
      <ellipse centre="_End" radiusx="3" radiusy="3" />
    </group>
    <group conditions="!_Horizontal,!$TextPosition">
      <text value="$Text" x="_Start" y="_Start-5" align="BottomCentre" size="large" />
      <line start="_Start+3y" end="_End" />
      <ellipse centre="_Start" radiusx="3" radiusy="3" />
    </group>
    <group conditions="!_Horizontal,$TextPosition">
      <text value="$Text" x="_End" y="_End+5" align="TopCentre" size="large" />
      <line start="_Start" end="_End-3y" />
      <ellipse centre="_End" radiusx="3" radiusy="3" />
    </group>
  </render>
</component>